///////////////////////////////////////////////////////////////////////////////////////////////////
/////////////// Table A12 - CFscore v JCScore  /////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////////////////////////


*** Load Data
use Data_OPO_Master, clear

* Coding Supreme Court Decision Direction
tab USCDB_decisionDirection
gen ddirection_sc =. 
replace ddirection_sc = 1 if USCDB_decisionDirection==1
replace ddirection_sc = 0 if USCDB_decisionDirection==2

* Coding Lower Court Decision Direction
tab USCDB_lcDispositionDirection
gen ddirection_lc =. 
replace ddirection_lc = 1 if USCDB_lcDispositionDirection==1
replace ddirection_lc = 0 if USCDB_lcDispositionDirection==2


*** Regressions for Table 12
reg ddirection_lc coa_panel_med_cf 
outreg2 coa_panel_med_cf coa_med_jcs using "TableA12.tex", nocons replace tex dec(3) drop(i.sc_term i.coa_circuit)

reg ddirection_lc  coa_panel_med_cf i.sc_term i.coa_circuit 
outreg2 coa_panel_med_cf coa_med_jcs using "TableA12.tex", nocons append tex dec(3) drop(i.sc_term i.coa_circuit)

reg ddirection_lc  coa_med_jcs 
outreg2 coa_panel_med_cf coa_med_jcs using "TableA12.tex", nocons append tex dec(3) drop(i.sc_term i.coa_circuit)

reg ddirection_lc  coa_med_jcs  i.sc_term i.coa_circuit 
outreg2 coa_panel_med_cf coa_med_jcs using "TableA12.tex", nocons append tex dec(3) drop(i.sc_term i.coa_circuit)
